using System.Collections.Generic;

namespace SolarWinds.Widgets
{
    public class Menu : Window
    {
        private readonly List<Button> mButtons;

        public Menu(Microsoft.Xna.Framework.Game game)
            : base(game)
        {
            mButtons = new List<Button>();
        }

        public void AddButton(Button button)
        {
            if (!mButtons.Contains(button))
            {
                mButtons.Add(button);
            }
        }

        protected internal override void PaintEvent()
        {
            base.PaintEvent();

            foreach (Button button in mButtons)
            {
                button.PaintEvent();
            }
        }        
    }
}